package com.lookme.lmtool.cracker.filter.edge;

import com.jhlabs.image.DoGFilter;
import com.lookme.lmtool.cracker.CrackerConstants;
import com.lookme.lmtool.cracker.annotation.FilterAnnotation;
import com.lookme.lmtool.cracker.annotation.ParamAnnotation;
import com.lookme.lmtool.cracker.filter.AbstractFilter;
import com.lookme.lmtool.utils.Canny;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

import java.awt.image.BufferedImage;
import java.awt.image.BufferedImageOp;

@FilterAnnotation(groupName = CrackerConstants.FILTER_GROUP_NAME_EDGE,name="Canny-边缘检测")
public class FilterCanny extends AbstractFilter {

    @Override
    public BufferedImage filter(BufferedImage src, BufferedImage dst) {
        Canny c=new Canny();
        return c.getCannyImg(src,0.08,0.4,2);
    }
}
